import request from '@/utils/request'

export function selectUser(name,pageNum,pageSize) {
  return request({
    url: '/sora/user/user/selectUserList/' + name + '/' + pageNum + '/' + pageSize,
    method: 'get',
  })
}

export function selectRole() {
  return request({
    url: '/sora/user/role/select/role',
    method: 'get',
  })
}

export function selectRoleById(id) {
  return request({
    url: '/sora/user/role/select/role/' + id,
    method: 'get',
  })
}

export function selectMenu() {
  return request({
    url: '/sora/user/menu/select/menu',
    method: 'get',
  })
}

export function selectMenusById(id) {
  return request({
    url: '/sora/user/menu/select/menu/' + id,
    method: 'get',
  })
}